<include file="./App/Admin/View/Common/header.html"/>
    <!-- Start Main Wrapper -->
    <div id="mws-wrapper">
    
        <!-- Necessary markup, do not remove -->
        <div id="mws-sidebar-stitch"></div>
        <div id="mws-sidebar-bg"></div>
        
        <!-- Sidebar Wrapper -->
        <div id="mws-sidebar">
        
            <!-- Searchbox -->
            <div id="mws-searchbox" class="mws-inset">
                <form action="http://www.malijuthemeshop.com/themes/mws-admin/1.5/typography.html">
                    <input type="text" class="mws-search-input" />
                    <input type="submit" class="mws-search-submit" />
                </form>
            </div>
            
            <!-- Main Navigation -->
            <div id="mws-navigation">
                <include file="./App/Admin/View/Common/left_nav.html"/>
            </div>            
        </div>
        
        <!-- Main Container Start -->
        <div id="mws-container" class="clearfix">
            <!-- Inner Container Start -->
            <div class="container">
				<div class="mws-panel grid_8">
				    <div class="mws-panel-header">
				        <span><i class="icon-table"></i> 浏览商品</span>
				    </div>
				    <div class="mws-panel-body no-padding">
				        <div id="DataTables_Table_0_wrapper" class="dataTables_wrapper" role="grid">
				        <form action="{:U('Goods/index')}" method="get">
				        <div class="dataTables_filter"><label>商品名称&nbsp;&nbsp;<input type="text" name="title" placeholder="搜索的商品名称" aria-controls="DataTables_Table_0" value="{$_GET['title']}">&nbsp;&nbsp;&nbsp;&nbsp;现价&nbsp;&nbsp;<input type="text" aria-controls="DataTables_Table_0" placeholder="价格大于" name="price1" value="{$_GET['price1']}"> & <input type="text" aria-controls="DataTables_Table_0" placeholder="价格小于" name="price2" value="{$_GET['price2']}"></label><input type="submit" class='btn'/ value="搜索"><a href="{:U('Goods/index')}" class='btn'>清空</a></div>
				        </form>
				        <table class="mws-datatable mws-table">
				        <thead>
				            <tr>
				                <th>商品ID</th>
				                <th>商品名称</th>
				                <th>商品原价</th>
				                <th>商品现价</th>
				                <th>图片</th>
				                <th>商品类别</th>
				                <th>操作</th>
				            </tr>
				        </thead>
				        <tbody>
				            <foreach name='data' item='vo'>
				                <tr>
				                <td>{$vo['id']}</td>
				                <td>{$vo['title']}</td>
				                <td>{$vo['ori_price']}</td>
				                <td>{$vo['cost_price']}</td>
				                <td><img src="__PUBLIC__/Uploads/{$vo['cover']}"/></td>
				                <td>{$vo['category_id']}</td>
				                <td><a href="{:U('Goods/edit','gid='.$vo['id'])}" style="color:black;padding:0 5px">修改</a><a href="{:U('Goods/delete','gid='.$vo['id'])}" style="color:black;padding:0 5px" onclick="return confirm('确定要删除吗')">删除</a><a href="{:U('Goods/detail','gid='.$vo['id'])}" style="color:black;padding:0 5px">详情</a>
				                <a href="{:U('Multipics/add','gid='.$vo['id'])}" style="color:black;padding:0 5px">添加多图</a></td>
				                </tr>
				            </foreach>
				        </tbody>
				    </table>
				    </div>
				    <div class="grid_8 page">
				        {$page}
				    </div>
				    </div>
				</div>
            </div>
<include file="./App/Admin/View/Common/footer.html"/>